﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeuralNetworkComponents
{
    public class ActivationNetwork : Network
    {
        public new ActivationLayer this[int index]
        {
            get { return ((ActivationLayer)Layers[index]); }
        }
        
        public ActivationNetwork(IActivationFunction function, int inputsCount, params int[] neuronsCount)
            : base(inputsCount, neuronsCount.Length)
        {
            for (int i = 0; i < LayersCount; i++)
            {
                Layers[i] = new ActivationLayer(neuronsCount[i],(i == 0) ? inputsCount : neuronsCount[i - 1],function);
            }
        }
    }
}
